package com.mkx.service;

import com.mkx.model.Restaurant;
import com.mkx.repository.RestaurantRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RestaurantService {
    @Autowired
    private RestaurantRepository repository;

    public List<Restaurant> findAllRestaurants() {
        return repository.findAll();
    }
}
